Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 15.0.0 #138

Merged
merged 69 commits into from
Jul 30, 2024
Merged

Release 15.0.0 #138

merged 69 commits into from
Jul 30, 2024

Conversation

himanshuchawla009
Copy link
Member

No description provided.

@himanshuchawla009 himanshuchawla009 marked this pull request as ready for review July 11, 2024 03:22
@himanshuchawla009 himanshuchawla009 changed the title Release 13.0.0 Release 14.0.0 Jul 11, 2024
@chaitanyapotti chaitanyapotti changed the title Release 14.0.0 Release 15.0.0 Jul 11, 2024

export const ed25519Curve = new EC("ed25519");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define this inside the function for better tree shaking

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

const publicKey = key.getPublic().encode("hex", false).slice(2);
const evmAddressLower = `0x${keccak256(Buffer.from(publicKey, "hex")).slice(64 - 38)}`;
return toChecksumAddress(evmAddressLower);
if (keyType === "secp256k1") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use enum for curve

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

return ecCurve.keyFromPrivate(skHex).getPublic();
}

export const encryptionEC = new EC("secp256k1");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls don't define exportable variables. not good for treeshaking

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

src/torus.ts Outdated Show resolved Hide resolved
src/torus.ts Outdated Show resolved Hide resolved
Copy link
Member

@chaitanyapotti chaitanyapotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chaitanyapotti chaitanyapotti merged commit 537c487 into master Jul 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants